package com.vast.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vast.system.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

@ApiModel(value = "com.vast.admin.entity.Templete")
@Data
@TableName(value = "templete")
public class Templete extends SuperEntity implements Serializable {


    /**
     * 当前使用的模板记录ID
     */
    @TableField(value = "record_id")
    @ApiModelProperty(value = "当前使用的模板记录ID")
    private Long recordId;
    /**
     * 当前使用的模板所属企业id
     */
    @TableField(value = "company_id")
    @ApiModelProperty(value = "所属企业id")
    private Long companyId;

    /**
     * 当前使用的模板所属企业名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "当前使用的模板所属企业名称")
    private String companyName;



    /**
     * 模板名称
     */
    @TableField(value = "templete_name")
    @ApiModelProperty(value = "模板名称")
    private String templeteName;

    /**
     * 模板路径
     */
    @TableField(value = "templete_path")
    @ApiModelProperty(value = "模板路径")
    private String templetePath;

    /**
     * 模板pdf路径
     */
    @TableField(value = "templete_pdf_path")
    @ApiModelProperty(value = "模板pdf路径")
    private String templetePdfPath;

    @TableField(value = "preview_url")
    @ApiModelProperty(value = "pdf预览路径")
    private String previewUrl;

    /**
     * 模板状态（0模板解析中 1草稿 2参数设置完成）
     */
    @TableField(value = "templete_status")
    @ApiModelProperty(value = "模板状态（0模板解析中 1草稿 2参数设置完成）")
    private Integer templeteStatus;

    /**
     * 所属模板库id
     */
    @TableField(value = "lib_id")
    @ApiModelProperty(value = "所属模板库id")
    private Long libId;

    /**
     * 状态 1-正常 0- 禁用
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态 1-正常 0- 禁用")
    private Integer status;


    /**
     * 扣费方式（1按模板计费 2按合同金额计费）
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "扣费方式（1按模板计费 2按合同金额计费）")
    private Integer costType;

    /**
     * 模板金额
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "模板金额")
    private Double payAmount;

    /**
     * 合同金额比例
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "合同金额比例")
    private Double payRatio;

    @TableField(exist = false)
    @ApiModelProperty(value = "最低金额")
    private Double minAmount;


    private static final long serialVersionUID = 1L;

    public static final String COL_RECORD_ID = "record_id";

    public static final String COL_COMPANY_ID = "company_id";

    public static final String COL_TEMPLETE_NAME = "templete_name";

    public static final String COL_TEMPLETE_PATH = "templete_path";

    public static final String COL_TEMPLETE_PDF_PATH = "templete_pdf_path";

    public static final String COL_TEMPLETE_STATUS = "templete_status";

    public static final String COL_LIB_ID = "lib_id";

    public static final String COL_STATUS = "status";
}